<template>
  <div>
    <el-table
      :data="OrderItemList"
      :stripe="true"
      style="width: 100%">
      <el-table-column
        prop="food.name"
        label="名称">
      </el-table-column>
      <el-table-column
        prop="count"
        label="数量">
      </el-table-column>

      <el-table-column
        prop="food.price"
        label="价格">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
    export default {
        name: "OrderItemList",
      data(){
          return {
            OrderItemList:[]
          }
      },
      created(){
        this.selectAll();
      },
      methods: {
        selectAll(){
          this.axios.get("/orderItem/selectByOid/"+this.$route.query.oid).then((resp)=>{
            this.OrderItemList=resp.data;
          });
        }
      }
    }
</script>

<style scoped>

</style>
